package com.segersten.othello.service.akka;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Auth
{
    private String domain;
    private String token;
    public Auth()
    {
    }
    public Auth(String domain, String token)
    {
        this.domain = domain;
        this.token = token;
    }
    
    public String getDomain() {
		return domain;
	}
	public void setDomain(String domain) {
		this.domain = domain;
	}
	public String getToken()
    {
        return token;
    }
    public void setToken(String token)
    {
        this.token = token;
    }
	@Override
	public String toString() {
		return "Auth [domain=" + domain + ", token=" + token + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((domain == null) ? 0 : domain.hashCode());
		result = prime * result + ((token == null) ? 0 : token.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Auth other = (Auth) obj;
		if (domain == null) {
			if (other.domain != null)
				return false;
		} else if (!domain.equals(other.domain))
			return false;
		if (token == null) {
			if (other.token != null)
				return false;
		} else if (!token.equals(other.token))
			return false;
		return true;
	}
	
    
    
}
